Pixeldev\SquareWooSync\Woo\SyncProduct D

Total Complexity 150
Dependencies 7
Dependents 1
Total lines 845
Lines of code 530
Logical lines of code 308
Comment lines 144
Methods 20
Properties 2

Methods 20

Method Rating Maintainability Complexity Lines of code
sync_inventory_after_product_sold()
C
30 26 119
get_square_customer_payload()
B
44 19 42
update_square_customer_roles()
A
44 15 43
export_to_square()
A
46 11 33
create_square_order_after_woo_order()
A
53 11 21
delete_square_product()
A
43 9 48
create_order_in_background()
A
47 8 34
update_square_product()
A
54 9 19
handle_ajax_export_to_square()
A
54 8 18
update_square_customer()
S
48 7 30
on_product_update()
S
57 6 15
handle_ajax_sync_to_square()
S
52 4 24
get_woo_product_data()
S
55 4 20
is_sync_successful()
S
73 4 4
init_woo_product()
S
56 2 16
add_ajax_script()
S
60 2 12
sync_meta_box_html()
S
61 2 11
add_sync_meta_box()
S
66 1 10
format_variation_data()
S
67 1 8
__construct()
S
79 1 3